<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:50px;"><Btn class="BtnSave" value="保存" ng-click="btnSave()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn value="放弃" ng-click="btnCancel()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn class="BtnAdd" value="新增" ng-click="btnAdd()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn class="BtnDelete" value="删除" ng-click="btnDelete()"></Btn></div>
  <div class="LableDiv" style="width:50px;">
    <BtnFind DisplayName="查找" WindowTitle="终端角色" change="btnFindChange()" module="Module.AppRole" OrderBy="{Code: 1}">
      <Column type="0" width="100px" displayname="编码" valuefield="Code"></Column>
      <Column type="textbox" width="100px" displayname="名称" valuefield="Name"></Column>
      <Column type="CheckBox" width="65px" displayname="生效" valuefield="IsEffective"></Column>
      <Column type="textbox" width="200px" displayname="备注" valuefield="Remark"></Column>
    </BtnFind>
  </div>
  <div class="LableDiv" style="width:60px;"><Btn value="列表" ng-click="btnList()"></Btn></div>
  <PageButton module="Module.AppRole" afterturnpage="pageChange()"></PageButton>
</div>
<div class="row RowSpace">
  <div class="LableDiv"><Label IsEmpty="false">编码</Label></div>
  <div class="InputDiv"><TextBox value="Module.AppRole.FocusedRecord.Code" isempty="false"></TextBox></div>
  <div class="LableDiv"><Label IsEmpty="false">名称</Label></div>
  <div class="InputDiv"><TextBox value="Module.AppRole.FocusedRecord.Name"></TextBox></div>  
  <div class="LableDiv"><Label>备注</Label></div>
  <div class="InputDiv" style="height:80px;"><TextareaBox value="Module.AppRole.FocusedRecord.Remark"></div>
  <div class="LableDiv"><Label>生效</Label></div>
  <div class="InputDiv"><CheckBox value="Module.AppRole.FocusedRecord.IsEffective"></CheckBox></div>
</div>

<div class="row RowSpace LastRow" style="margin-top:20px;">
  <DataGrid module="Module._App">
      <ReferColumn IsEmpty="false" EntityName="App" beforeshow="refBeforeShow(refScope)" CodeField="AppID" DisplayName="App应用" Condition="{IsShared: false}" OrderBy="{AppID: 1}" width="200px" WindowTitle="App应用" ValueField="App">
        <Column type="0" width="100px" DisplayName="AppID" valuefield="AppID"></Column>
        <Column type="0" width="100px" DisplayName="名称" valuefield="Name"></Column>
        <Column type="textbox" width="100px" DisplayName="版本" valuefield="Version"></Column>
        <Column type="TextBox" width="200px" DisplayName="描述" valuefield="Describe"></Column>
        <Column type="TextBox" width="200px" DisplayName="备注" valuefield="Remark"></Column>
      </ReferColumn>
      <TextBoxColumn displayname="AppID" IsEdit="false" width="100px" valuefield="App.AppID"></TextBoxColumn>  
      <TextBoxColumn displayname="名称" IsEdit="false" width="100px" valuefield="App.Name"></TextBoxColumn>
      <TextBoxColumn displayname="版本" IsEdit="false" width="100px" valuefield="App.Version"></TextBoxColumn>
      <TextBoxColumn displayname="描述" IsEdit="false" width="200px" valuefield="App.Describe"></TextBoxColumn>
      <TextBoxColumn displayname="备注" IsEdit="false" width="200px" valuefield="App.Remark"></TextBoxColumn>
  </DataGrid>
</div>
